﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace BLL.ElecBoss
{
     public class TicketManager
    {
         OracleDAL.ElecBoss.TicketManager t = new OracleDAL.ElecBoss.TicketManager();
         public DataSet getTicketSet(string whereStr)
         {
             DataSet ds = new DataSet();
             ds = t.getTicketSet(whereStr);
             return ds;
         }
         public void syncTickFromAlarmHis()
         {
             t.syncTickFromAlarmHis();
         }
         /// <summary>
         /// 根据告警ID获取工单信息
         /// </summary>
         /// <param name="ALARMID">告警ID</param>
         /// <returns></returns>
         public DataSet GetTicketInfoByAlaram(string ALARMID)
         {
             return t.GetTicketInfoByAlaram(ALARMID);
         }
          /// <summary>
        /// 获取工单信息
        /// </summary>
        /// <param name="strWhere">查询条件/工单ID</param>
        /// <returns></returns>
         public DataSet GetTicketInfo(string strWhere)
         {
             return t.GetTicketInfo(strWhere);
         }
         public string getAlarmResult(string alarmID)
         {
             return t.getAlarmResult(alarmID);
         }
         public int addTicket(string insertSql)
         {
             int result = 0;
             result = t.addTicket(insertSql);
             return result;             
         }
         public int judgeExit(string id)
         {
             return t.judgeExit(id);
         }
         public int deleteTicket(string id)
         {
             return t.deleteTicket(id);
         }
         public string getTicketType(string id)//是告警工单 还是手动故障工单
         {
             return t.getTicketType(id);
         
         }
         public DataSet getChildSystem()
         {
             return t.getChildSystem();
         }
         public DataSet getTickeCount()
         {
             return t.getTickeCount();
         }
         public DataSet getTickeCount(string date)
         {
             return t.getTickeCount(date);
         }
         /// <summary>
         /// 根据告警原因来获取告警的ALARM_MAP表中的资源ID及告警原因号用来处理相似经验
         /// </summary>
         /// <param name="alarmCase">告警原因</param>
         /// <returns></returns>
         public DataSet getAlarmMapInfo(string alarmCase)
         {
             return t.getAlarmMapInfo(alarmCase);
         }
         /// <summary>
         /// 获得设备类型
         /// </summary>
         /// <returns></returns>
         public string getEquipType(string equipName)
         {

             return t.getEquipType(equipName);
         }
    }

}
